home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / CATALOGAWARENESSINTERFACE.PY < prev    next >
Encoding:
Python Source  |  2000-03-14  |  1.2 KB  |  60 lines

  1. from Zope.Interfaces.Interface import Interface
  2.  
  3. class CatalogAware:
  4.     """
  5.     Description of the Item interface
  6.     """
  7.  
  8.     def creator(self):
  9.         """
  10.  
  11.         Return a sequence of user names who have the local Owner role
  12.         on an object. The name creator is used for this method to
  13.         conform to Dublin Core.
  14.  
  15.         """
  16.  
  17.     def summary(self, num=200):
  18.         """
  19.  
  20.         Returns the summary of the text contents of the object (if
  21.         text content is present).  Summary length is 'num'.
  22.  
  23.         """
  24.  
  25.     def index_object(self):
  26.         """
  27.  
  28.         This object will try and catalog itself when this method is
  29.         called.
  30.  
  31.         """
  32.  
  33.     def unindex_object(self):
  34.         """
  35.  
  36.         This object will try and uncatalog itself when this method is
  37.         called.
  38.  
  39.         """
  40.  
  41.     def reindex_all(self, obj=None):
  42.         """
  43.  
  44.         This method will cause this object to get reindexed.  Of this
  45.         object is a container, then all child objects will try to be
  46.         recursivly reindexed.  'obj' can be passed as an alternative
  47.         object to try and reindex.
  48.  
  49.         """
  50.             
  51.  
  52. CatalogAwareInterface=Interface(CatalogAware) # create the interface object
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.